
// motor (back wheels are powered)
#define MOTOR_ENABLE 9
#define MOTOR_DIR 36

// button (Red button on the roof)
#define BUTTON 49

//servo (rotate frontal wheels) 
#define SERVO_PIN 30
#define MAX_MS_SERVOTIK 1000
#define SERVO_OFFSET 79
#define SERVO_MAX_ANGLE 28 
#define STCALC(a) SERVO_OFFSET+(a) 
// led
#define LED 13

// distanse (analog sensors)
#define DIST_SENSOR_RIGHT 0
#define DIST_SENSOR_CENTER 1
#define DIST_SENSOR_LEFT 2
#define DIST_SENSOR_BRIGHT 4
#define DIST_SENSOR_BLEFT 3

#define FIRST_ADC_INPUT 8
#define LAST_ADC_INPUT 12


//sensorTSOP (sensors of contact group)
#define SENSOR_LED_RIGHT 3
#define SENSOR_DIGITAL_RIGHT 24
#define SENSOR_LED_LEFT 5
#define SENSOR_DIGITAL_LEFT 26
#define SENSOR_LED_CENTER 2
#define SENSOR_DIGITAL_CENTER 43
#define SENSOTR_TSOP_LEFT 0
#define SENSOTR_TSOP_CENTER 1
#define SENSOTR_TSOP_RIGHT 2

// contact sensor (front buttons)
#define CONTACT_SENSOR_LEFT 50
#define CONTACT_SENSOR_RIGHT 42
#define CONTACT_SENSOR_CENTER 52



